package io.renren.modules.sys.entity;

import io.renren.common.validator.group.AddGroup;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import java.io.Serializable;
import java.util.Date;


/**
 * 用户充值记录表
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2017-11-08 19:36:41
 */
public class SysRechargeEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 充值ID
	 */
	private Long rechargeId;
	/**
	 * 用户ID
	 */
	private Long userId;
	/**
	 * 充值金额,单位元
	 */
	@Range(min = 0)
	private Long amount;
	/**
	 * 真实姓名
	 */
	private String realName;
	/**
	 * 微信号
	 */
	@NotBlank(message = "微信号不能为空", groups = AddGroup.class)
	private String weixin;
	/**
	 * 1已删除，0未删除
	 */
	private Integer isDelete;
	//
	private Date createTime;
	//
	private Long createPerson;
	/**
	 * 备注
	 */
	private String remark;

	/**
	 * 设置：充值ID
	 */
	public void setRechargeId(Long rechargeId) {
		this.rechargeId = rechargeId;
	}
	/**
	 * 获取：充值ID
	 */
	public Long getRechargeId() {
		return rechargeId;
	}
	/**
	 * 设置：用户ID
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	/**
	 * 获取：用户ID
	 */
	public Long getUserId() {
		return userId;
	}
	/**
	 * 设置：充值金额
	 */
	public void setAmount(Long amount) {
		this.amount = amount;
	}
	/**
	 * 获取：充值金额
	 */
	public Long getAmount() {
		return amount;
	}
	/**
	 * 设置：真实姓名
	 */
	public void setRealName(String realName) {
		this.realName = realName;
	}
	/**
	 * 获取：真实姓名
	 */
	public String getRealName() {
		return realName;
	}
	/**
	 * 设置：微信号
	 */
	public void setWeixin(String weixin) {
		this.weixin = weixin;
	}
	/**
	 * 获取：微信号
	 */
	public String getWeixin() {
		return weixin;
	}
	/**
	 * 设置：1已删除，0未删除
	 */
	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}
	/**
	 * 获取：1已删除，0未删除
	 */
	public Integer getIsDelete() {
		return isDelete;
	}
	/**
	 * 设置：
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：
	 */
	public Date getCreateTime() {
		return createTime;
	}
	/**
	 * 设置：
	 */
	public void setCreatePerson(Long createPerson) {
		this.createPerson = createPerson;
	}
	/**
	 * 获取：
	 */
	public Long getCreatePerson() {
		return createPerson;
	}
	/**
	 * 设置：备注
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}
	/**
	 * 获取：备注
	 */
	public String getRemark() {
		return remark;
	}
}
